package com.np.demo1;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateDemo1 {
    public static void test1() {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-01");
        String sDate = sdf.format(date);
    }
}
